Use make_formatted_string to avoid double length calculation.
authorDmitry Antipov <dmantipov@yandex.ru>
Mon, 9 Jul 2012 12:02:27 +0000 (16:02 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Mon, 9 Jul 2012 12:02:27 +0000 (16:02 +0400)
commit369f02fe552b6735661aa1c33c84099f8ee548c5
tree19489a9a5cef461f9c78271f6db880bb08cdb9bd
parent60b7af46af0ed566ebcc54c69118098527167c76
Use make_formatted_string to avoid double length calculation.
* lisp.h (make_formatted_string): New prototype.
* alloc.c (make_formatted_string): New function.
* buffer.c (Fgenerate_new_buffer_name): Use it.
* dbus.c (syms_of_dbusbind): Likewise.
* editfns.c (Fcurrent_time_zone): Likewise.
* filelock.c (get_boot_time): Likewise.
* frame.c (make_terminal_frame, set_term_frame_name)
(x_report_frame_params): Likewise.
* image.c (gs_load): Likewise.
* minibuf.c (get_minibuffer): Likewise.
* msdos.c (dos_set_window_size): Likewise.
* process.c (make_process): Likewise.
* xdisp.c (ensure_echo_area_buffers): Likewise.
* xsettings.c (apply_xft_settings): Likewise.
14 files changed:
src/ChangeLog
src/alloc.c
src/buffer.c
src/dbusbind.c
src/editfns.c
src/filelock.c
src/frame.c
src/image.c
src/lisp.h
src/minibuf.c
src/msdos.c
src/process.c
src/xdisp.c
src/xsettings.c